// 统一管理 约球帖分区 请求方法

import {
  request
} from "@/utils/request";

const API = {
  GETAPPOINTPOSTLIST_URL: "/agreementBlog/page/", // 分页获取约球贴列表
  SEARCHAPPOINTPOST_URL: "/agreementBlog/SearchAgreements/" // 搜索约球帖
}

// 分页获取约球帖列表
export const reqGetAppointPostList = (type, startId) => request({
  url: API.GETAPPOINTPOSTLIST_URL + `${type}/${startId}`,
  method: 'GET'
})

// 搜索约球帖
export const reqSearchAppointPost = (searchText, appointType, levelType) => request({
  url: API.SEARCHAPPOINTPOST_URL + `${searchText}/${appointType}/${levelType}`,
  method: 'Get'
})